#ifndef JSIMPLIFIEDCHINESECANDIDATEPANEL_H
#define JSIMPLIFIEDCHINESECANDIDATEPANEL_H

#include "inputmethod/jabstractcandidatepanel.h"

namespace QTE
{

class JSimplifiedChineseCandidatePanelPrivate;

class Q_DECL_HIDDEN JSimplifiedChineseCandidatePanel : public JAbstractCandidatePanel
{
	Q_OBJECT

public:
	Q_INVOKABLE explicit JSimplifiedChineseCandidatePanel(QWidget *parent = nullptr);
	~JSimplifiedChineseCandidatePanel();

public:
	inline bool isValid() const override { return true; }
	void predicts(const QString &text) override;

public:
	void input(const QString &text) override;
	void input(Qt::Key key) override;
	void defaultInput() override;

protected:
	void hideEvent(QHideEvent *event) override;

private:
	JSimplifiedChineseCandidatePanelPrivate *d_ptr;
};

} //namespace QTE


#endif //JSIMPLIFIEDCHINESECANDIDATEPANEL_H
